package com.newasia.server.common.template.dataItem.basics;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiChong
 * @description 按钮设置项
 * @date 2020/4/21
 */
@Data
public class StartStopSetup {

    private Integer start_stop_id;
    private Integer start_stop_id2;
    private Integer start_stop_id3;
    private Integer start_stop_id4;
    private Integer count;

    public List<Integer> getSetupStartStopIdList(){
        List<Integer> idList = new ArrayList<Integer>();
        if(start_stop_id!=null)
            idList.add(start_stop_id);
        if(start_stop_id2!=null)
            idList.add(start_stop_id2);
        if(start_stop_id3!=null)
            idList.add(start_stop_id3);
        if(start_stop_id4!=null)
            idList.add(start_stop_id4);
        return idList;
    }
}
